package cn.com.epicc.wap.epe.product.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 分页信息
 * @param <T>
 */
@SuppressWarnings("deprecation")
@ApiModel
@Data
@NoArgsConstructor
@JsonSerialize(include =  JsonSerialize.Inclusion.NON_NULL)
public class PageVo<T> {

  @ApiModelProperty("总条数")
  private int total;

  @ApiModelProperty("开始下标")
  private int start;

  @ApiModelProperty("结束下标")
  private int end;

  @ApiModelProperty("当前页数据")
  private List<T> data = new ArrayList<>();

}
